From 910e013fdc509f2ccc402a26c8eacd26f46fc24d Mon Sep 17 00:00:00 2001 From: WebTogz Date: Tue, 10 Nov 2015 19:28:47 +0100 Subject: [PATCH] Update guide.md Modification of the second sentence, to explain how to pass flags with Cargo --- src/doc/guide.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/doc/guide.md b/src/doc/guide.md index ad7819fa3..5b40a95fd 100644 --- a/src/doc/guide.md +++ b/src/doc/guide.md @@ -92,7 +92,8 @@ class="s1"> Fresh hello_world v0.1.0 (file:///path/to/project/hello_w class="s1"> Running `target/debug/hello_world` Hello, world! -To pass some arguments to your program, you can use `cargo run first_argument second_argument`. If flags are being passed to the command being invoked, please to use `cargo run -- --a_flag -b an_argument`. +To pass some arguments to your program, use `cargo run first_arg second_arg`. +If flags are being passed, use a '--' separator to tell Cargo which flags go where, like `cargo run -- --foo -b bar`. You'll now notice a new file, `Cargo.lock`. It contains information about our dependencies. Since we don't have any yet, it's not very interesting. -- 2.30.2